var myVid = videojs('video');
// 视频弹框
function playVideo(name) {
    console.log(name);
    $(".mask").show();
    var source = name;
    console.log(source);
    $(".build-source").attr("src", source);
    // myVid = videojs('video',{
    //     autoplay: true
    // });
    myVid.src(source); //重置video的src
    myVid.load(source); //使video重新加载
    myVid.play();
    $(".vjs-big-play-button").css("display", "none");
};

function closeVideo() {
    myVid.pause();
    $(".mask").hide();
}
var swiper = new Swiper('.swiper-container', {
    direction: 'vertical',
    slidesPerView:'auto',
    observer:true,//修改swiper自己或子元素时，自动初始化swiper
    observeParents:true,//修改swiper的父元素时，自动初始化swiper
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
        hideOnClick: true,
    },
    on: {
        navigationHide: function () {}
    }
});
$(function () {
    var hBody=$("body").height();
    console.log(hBody);
    var  client=window.innerHeight;
    console.log(client);
    var width =$("body").width();
    var d=750/100;
    var c=width / d;
    console.log(c);
    var hRem=hBody/c;
    console.log(hRem);
    var hContent=hRem-7.55;
    console.log(hContent);
    $(".person-deeds-wrap").css("line-height",hContent+"rem");
})

